<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>新建<?php echo $cInfos['typename']; ?></title>
<?php include(DEDEMEMBER."/templets/head_inc.htm"); ?>
<script type="text/javascript" language='javascript' src='js/main.js'></script>
<script type="text/javascript" language='javascript' src='js/album.js'></script>
</head>
<body>
<?php include(DEDEMEMBER."/templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main">
      <?php include(DEDEMEMBER."/templets/menu.php"); ?>
      <div class="dedeMain">
        <div class="location"><span class="titAddChannel2 icon">新建</span><?php echo $cInfos['typename']; ?></div>
        <form class="mTB10 mR10 mL10" name="form1" action="album_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
          <input type="hidden" name="imagebody" id="imagebody" value='' />
          <table cellspacing="1" class="submit mB10">
            <thead>
              <tr>
                <th colspan="2" >常规参数</th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td width="15%" align="right" valign="top"><?php echo $cInfos['typename']; ?>标题：</td>
                <td><input name="title" type="text" id="title" class="text" size="30" style="width:400px;" />
                  <span style="color:#F00">*</span></td>
              </tr>
              <tr>
                <td align="right" valign="top">标签TAG：</td>
                <td><input name="tags" type="text" id="tags" size="30" class="text" style='width:400px' />
                  (用逗号分开)</td>
              </tr>
              <tr>
                <td align="right" valign="top">作者：</td>
                <td><input name="writer" type="text" id="writer" size="30" style="width:95px;" class="text" value="<?php echo $cfg_ml->M_UserName?>" /></td>
              </tr>
              <tr>
                <td align="right" valign="top">隶属栏目：</td>
                <td><?php
    $typeOptions = GetOptionList(0,$channelid);
    echo "<select name='typeid' size='1'>\r\n";
    echo "<option value='0' selected>请选择栏目...</option>\r\n";
    echo $typeOptions;
    echo "</select>";
	?>
                  <span style="color:#F00">*</span>(不能选择带颜色的分类)</td>
              </tr>
              <tr>
                <td align="right" valign="top">我的分类：</td>
                <td><?php
            	$classlist = classification($cfg_ml->M_ID, 0, $channelid);
            	echo "<select name='mtypesid' size='1'>\r\n";
            	echo "<option value='0' selected>请选择分类...</option>\r\n";
				echo $classlist;
				echo "</select>";
            ?></td>
              </tr>
              <tr>
                <td align="right" valign="top">图集简介：</td>
                <td><textarea name="description" id="description" style="height:50px"></textarea>
                  (内容的简要说明) </td>
              </tr>
              <tr>
                <td align="right" valign="top">缩略图：</td>
                <td><input name="litpic" type="file" id="litpic" style="width:408px" onchange="SeePicNew('divpicview',this);"  />
                <br />
                  <div id='divpicview' alt="Image picview" ></div></td>
              </tr>
            </tbody>
          </table>
          <input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $cfg_album_width; ?>" />
          <input name="prow" type="hidden"  value="<?php echo $cfg_album_row; ?>"  />
          <input name="pcol" type="hidden"  value="<?php echo $cfg_album_col; ?>" />
          <input name="ddmaxwidth" type="hidden" value="<?php echo $cfg_album_ddwidth; ?>" />
          <table cellspacing="1" class="submit">
            <thead>
              <tr>
                <th colspan="2" ><strong>图集内容</strong></th>
              </tr>
            </thead>
            <tbody>
              <tr>
                <td width="15%" align="right" valign="top">表现方式：</td>
                <td><input name="pagestyle" type="radio" id="pagestyle1" onclick="checkMuList()" value="1" <?php if($cfg_album_style==1) echo " checked='checked'"; ?> />
                  多页多图显示(适用于QQ表情等)
                  <input name="pagestyle" type="radio" id="pagestyle2" onclick="checkMuList()" value="2" <?php if($cfg_album_style==2) echo " checked='checked'"; ?> />
                  多页单图显示(幻灯)
                  <input name="pagestyle" type="radio" id="pagestyle3" onclick="checkMuList()" value="3" <?php if($cfg_album_style==3) echo " checked='checked'"; ?>/>
                  多行多列显示(缩略图)
                  <div id='spagelist' style='display:none' class="mTB10"> 每页图片数：
                    <input name='pagpicnum' id='pagpicnum' size='10' class="text" value='<?php echo $cfg_album_pagesize; ?>'/>
                  </div></td>
              </tr>
              <tr>
                <td width="15%" align="right" valign="top">手工上传：</td>
                <td>
              	图片数目：<input name="picnum" type="text" id="picnum" size="6" value="3" class="text" style="width:100px" />
                  <button class="buttonGary2" name='kkkup' type='button' id='kkkup2' onclick="MakeUpload(0);">增加</button>(最大60幅)
                </td>
              </tr>
              <tr id="handfield">
                <td></td>
                <td>
                	<div id="uploadfield"></div>
                  <script language="JavaScript">MakeUpload(2);</script>
                </td>
              </tr>
              <tr>
                <td align="right" valign="top">验证码：</td>
                <td><input name="vdcode" type="text" id="vdcode" size="10" class="text" style='width:50px;text-transform:uppercase;' />
                  <img src='../include/vdimgck.php' width='50' height='20' align="absmiddle" alt="看不清？点击更换" align="absmiddle" style="cursor:pointer" onclick="this.src=this.src+'?'" /></td>
              </tr>
            </tbody>
            <tfoot>
              <tr>
                <td height="45">&nbsp;</td>
                <td height="45"><button class="button2" type="submit">提交</button>
                  <button class="button2 mL10" type="reset" onclick="location.reload();">重置</button></td>
              </tr>
            </tfoot>
          </table>
        </form>
      </div>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
</body>
</html>
